From 2ff5f929a67dac6d9f3fc821580dd1f47d3e80d0 Mon Sep 17 00:00:00 2001 From: John Zhang Date: Wed, 11 Mar 2015 18:59:19 -0700 Subject: [PATCH] Updated build in guide.md autogenerates to guide.html --- src/doc/guide.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 3459fb7e9..18028b175 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -80,7 +80,7 @@ class="s1"> Compiling hello_world v0.0.1 (file:///path/to/project/hello And then run it: ```shell -$ ./target/hello_world +$ ./target/debug/hello_world Hello, world! ``` @@ -90,12 +90,18 @@ We can also use `cargo run` to compile and then run it, all in one step: Fresh hello_world v0.0.1 (file:///path/to/project/hello_world) Running `target/hello_world` +class="s1"> Running `target/debug/hello_world` Hello, world! You'll now notice a new file, `Cargo.lock`. It contains information about our dependencies. Since we don't have any yet, it's not very interesting. +Once you're ready for release, you can use `cargo build --release` to compile your files with optimizations turned on: + +
$ cargo build --release
+   Compiling hello_world v0.0.1 (file:///path/to/project/hello_world)
+ ## Adding a dependency It's quite simple to add a dependency. Simply add it to your `Cargo.toml` file: -- 2.30.2